import pygame

# x,y,width,height
hero_rect = pygame.Rect(100,500,120,150)

print(hero_rect)
print('英雄的原点 %d %d' % (hero_rect.x,hero_rect.y ))
# 返回一个元组,记录width和height
print(hero_rect.size)
print(hero_rect.width,hero_rect.height)